package cn.emailChat.ai.replychain;

import cn.emailChat.ai.dto.MailInboundEvent;
import lombok.extern.slf4j.Slf4j;
import org.springframework.beans.factory.annotation.Value;
import org.springframework.core.annotation.Order;
import org.springframework.stereotype.Component;
/**
 * @Description 默认固定文案 节点
 * @Author susu
 * @Date 2025/8/18
 */
@Slf4j
@Component
@Order(Integer.MAX_VALUE) // 最后执行
public class DefaultFixedReplyHandler extends AbstractReplyHandler {

    @Value("${mail.reply.fixed-content:您好，已收到您的邮件，我们会尽快处理。（此为自动回复）}")
    private String fixedContent;

    @Override
    protected String tryHandle(MailInboundEvent e) {
        log.info("[ReplyChain] 使用默认固定回复文案");
        return fixedContent;
    }
}
